<body>
<script src="full-screen-test.js"></script>
<div id="one">
    <div id="fullscreen"></div>
    <div id="two"><span></span></div>
</div>

<script>
    var callback;
    waitForEvent(document, 'webkitfullscreenchange', function() {
        var one = document.getElementById('one');
        var two = document.getElementById('two');
        one.removeChild(two);
        endTest();
    });

    function goFullScreen() {
        document.getElementById('fullscreen').webkitRequestFullScreen();
    }
    runWithKeyDown(goFullScreen);
</script>
